#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <iostream>
#include <thread>

//
// Created by dgvy on 2021/11/26.
//


void current_time_format_hour(uint8_t *curTime)
{
    if (curTime == NULL)
    {
        return;
    }
    struct timeval tv;
    struct timezone tz;
    struct tm tp;

    gettimeofday(&tv, &tz);
    localtime_r(&tv.tv_sec, &tp);
    sprintf((char *)curTime,
            "%04d-%02d-%02d-%02d",
            tp.tm_year + 1900,
            tp.tm_mon + 1,
            tp.tm_mday,
            tp.tm_hour);
}

int main(int argc, char *argv[])
{
    if ( std::string("120") == "123")
    {
        printf("kljaldjakld");
    }

    return 0;
}